#include "../include/rogue.h"
#include <curses.h>

void curses_setup(void)
{
    initscr();
    noecho();
    curs_set(0);
}

void game_loop(void)
{
    int ch;
    
    draw();

    while ((ch = getch()) != 'q') {
        handle_input(ch);
        draw();
    }
}

void close_game(void)
{
    endwin();
    free(player);
}

